import React from 'react';
import styles from './Weixin.css';

import { Table, Card, Row, Col } from 'antd';
import Sider from './Sider'
import News from './News'
import Users from './Users'


function Weixin(props) {
  console.log('Weixin Conponent props: ', props)
  return (
    <div className={styles.normal}>
      <div className={styles.sider}><Sider {...props}/></div>
      <div className={styles.content}>
        <div className={props.weixin.showModule == 'news' ? null : styles.hidden}><News {...props}/></div>
        <div className={props.weixin.showModule == 'users' ? null : styles.hidden}><Users {...props}/></div>
      </div>
    </div>
  )
}

export default Weixin;
